package com.example.My.service;

import com.example.My.common.ResponseResult;
import com.example.My.pojo.User;
import org.springframework.security.core.Authentication;

/**
 * Author: 谢宇
 * CreatTime 2023/11/5 14:57
 * Version 1.0.0
 */
public interface LoginService {

    ResponseResult sendCode(Authentication CodeName);

    ResponseResult login(User user);

    ResponseResult loginByEmail(User user);

    ResponseResult loginByPhone(User user);

    ResponseResult logout();
}
